package com.autumn.platform.core.support.model.grid.enums;

public enum EditType {

    NO_EDIT, TEXT_EDIT, INT_EDIT, NUM_EDIT, DATE_EDIT, MONTH_EDIT;

    public static EditType instance(String code) {
        if (null != code) {
            code = code.trim().toUpperCase();
            for (EditType t : values()) {
                if (t.name().equals(code)) {
                    return t;
                }
            }
        }
        return NO_EDIT;
    }
}
